GtkSpinButton: Simplify code
authorMatthias Clasen <mclasen@redhat.com>
Mon, 20 Oct 2014 02:07:19 +0000 (22:07 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 20 Oct 2014 02:07:19 +0000 (22:07 -0400)
No need to explicitly specify a parser function, it will be
correctly guessed from the property type.

gtk/gtkspinbutton.c

index b191784e488fb2a1254a3e75c77171de202cfa36..55ae063fe8803fde858010509e095db1bed77443 100644 (file)
@@ -410,14 +410,13 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class)
                                     PROP_ORIENTATION,
                                     "orientation");
 
-  gtk_widget_class_install_style_property_parser (widget_class,
-                                                  g_param_spec_enum ("shadow-type",
-                                                                     "Shadow Type",
-                                                                     P_("Style of bevel around the spin button"),
-                                                                     GTK_TYPE_SHADOW_TYPE,
-                                                                     GTK_SHADOW_IN,
-                                                                     GTK_PARAM_READABLE),
-                                                  gtk_rc_property_parse_enum);
+  gtk_widget_class_install_style_property (widget_class,
+                                           g_param_spec_enum ("shadow-type",
+                                                              P_("Shadow Type"),
+                                                              P_("Style of bevel around the spin button"),
+                                                              GTK_TYPE_SHADOW_TYPE,
+                                                              GTK_SHADOW_IN,
+                                                              GTK_PARAM_READABLE));
 
   /**
    * GtkSpinButton::input: